<template>
    <div class=''>
        <table>
            <thead>
                <th>姓名</th>
                <th>年龄</th>
                <th>手机号</th>
                <th>性别</th>
                <th>操作</th>
            </thead>
            <tbody>
                <tr v-for="(item,index) in data" :key="index">
                    <td>{{item.name}}</td>
                    <td>{{item.age}}</td>
                    <td>{{item.phone}}</td>
                    <td>{{item.sex}}</td>
                    <td>
                        <slot :row="index"></slot>
                    </td>
                </tr>

            </tbody>
        </table>
    </div>
</template>

<script>
export default {
    props:{
      data: Array,
    },
    data() {
        return {};
    },
    mounted() {},
    methods: {},
    components:{}
};
</script>

<style lang='scss'>

</style>
